//
//  MessageModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/5.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "MessageModel.h"

@implementation MessageModel

- (MessageModel *)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.content = dict[@"content"];
        self.contentType = [dict[@"contentType"] integerValue];
        self.header = dict[@"header"];
        self.createDate = dict[@"createDate"];
        self.formatCreateDate = dict[@"formatCreateDate"];
        self.ID = [dict[@"id"] integerValue];
        self.status = [dict[@"status"] integerValue];
        self.type = dict[@"type"];
        self.userId = [dict[@"userId"] integerValue];
    }
    return self;
}

+ (instancetype)messageWithDict:(NSDictionary *)dict
{
    return [[MessageModel alloc]initWithDict:dict];
}

@end
